<?php

class Photoservice extends BasePhotoservice
{
	
	
    public function setFilePath1($value) {
		parent::setFilePath1 ( $value );
		if($value!='')$this->generateThumbnail1 ( $value );
		
	}
	public function generateThumbnail1($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath1 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath1 () );	
	}
	
	
    public function setFilePath2($value) {
		parent::setFilePath2 ( $value );
		if($value!='')$this->generateThumbnail2 ( $value );
		
	}
	public function generateThumbnail2($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath2 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath2 () );	
	}
	
    public function setFilePath3($value) {
		parent::setFilePath3 ( $value );
		if($value!='')$this->generateThumbnail3 ( $value );
		
	}
	public function generateThumbnail3($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath3 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath3 () );	
	}
	
	
    public function setFilePath4($value) {
		parent::setFilePath4 ( $value );
		if($value!='')$this->generateThumbnail4 ( $value );
		
	}
	public function generateThumbnail4($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath4 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath4 () );	
	}
	
	
	
    public function setFilePath5($value) {
		parent::setFilePath5 ( $value );
		if($value!='')$this->generateThumbnail5 ( $value );
		
	}
	public function generateThumbnail5($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath5 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath5 () );	
	}
	
	
	
    public function setFilePath6($value) {
		parent::setFilePath6 ( $value );
		if($value!='')$this->generateThumbnail6 ( $value );
		
	}
	public function generateThumbnail6($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath6 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath6 () );	
	}
	
	
	
    public function setFilePath7($value) {
		parent::setFilePath7 ( $value );
		if($value!='')$this->generateThumbnail7 ( $value );
		
	}
	public function generateThumbnail7($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath7 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath7 () );	
	}

	
    public function setFilePath8($value) {
		parent::setFilePath8 ( $value );
		if($value!='')$this->generateThumbnail8 ( $value );
		
	}
	public function generateThumbnail8($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath8 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath8 () );	
	}
	
	
    public function setFilePath9($value) {
		parent::setFilePath9 ( $value );
		if($value!='')$this->generateThumbnail9 ( $value );
		
	}
	public function generateThumbnail9($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath9 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath9 () );	
	}
	
	
    public function setFilePath10($value) {
		parent::setFilePath10 ( $value );
		if($value!='')$this->generateThumbnail10 ( $value );
		
	}
	public function generateThumbnail10($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath10 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath10 () );	
	}
	
	
    public function setFilePath11($value) {
		parent::setFilePath11 ( $value );
		if($value!='')$this->generateThumbnail11 ( $value );
		
	}
	public function generateThumbnail11($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath11 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath11 () );	
	}
	
    public function setFilePath12($value) {
		parent::setFilePath12 ( $value );
		if($value!='')$this->generateThumbnail12 ( $value );
		
	}
	public function generateThumbnail12($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath12 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath12 () );	
	}
	
	
	
    public function setFilePath13($value) {
		parent::setFilePath13 ( $value );
		if($value!='')$this->generateThumbnai13 ( $value );
		
	}
	public function generateThumbnai13($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath13 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath13 () );	
	}
	
	
	
    public function setFilePath14($value) {
		parent::setFilePath14 ( $value );
		if($value!='')$this->generateThumbnail14 ( $value );
		
	}
	public function generateThumbnail14($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath14 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath14 () );	
	}
	
	
    public function setFilePath15($value) {
		parent::setFilePath15( $value );
		if($value!='')$this->generateThumbnail15 ( $value );
		
	}
	public function generateThumbnail15($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath15 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath15 () );	
	}
	
	
	
    public function setFilePath16($value) {
		parent::setFilePath16 ( $value );
		if($value!='')$this->generateThumbnail16 ( $value );
		
	}
	public function generateThumbnail16($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath16 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath16 () );	
	}
	
	
	
	
    public function setFilePath17($value) {
		parent::setFilePath17 ( $value );
		if($value!='')$this->generateThumbnail17 ( $value );
		
	}
	public function generateThumbnail17($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath17 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath17 () );	
	}
	
	
    public function setFilePath18($value) {
		parent::setFilePath18 ( $value );
		if($value!='')$this->generateThumbnail18 ( $value );
		
	}
	public function generateThumbnail18($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath18 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath18 () );	
	}
	
	
    public function setFilePath19($value) {
		parent::setFilePath19 ( $value );
		if($value!='')$this->generateThumbnail19 ( $value );
		
	}
	public function generateThumbnail19($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath19 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath19 () );	
	}
	
	
    public function setFilePath20($value) {
		parent::setFilePath20 ( $value );
		if($value!='')$this->generateThumbnail20( $value );
		
	}
	public function generateThumbnail20($value) 

	{		
		$uploadDir = sfConfig::get ( 'sf_upload_dir' );
		$thumbnail = new sfThumbnail ( $this->getWidth(),$this->getHeight() );
		$thumbnail->loadFile ( $uploadDir . '/material/photo_service/' . $this->getFilePath20 () );
		$thumbnail->save ( $uploadDir . '/material/photo_service/_thumbnail/' . $this->getFilePath20 () );	
	}
	
}
